const form = [{
    key: 'pz',
    label: '品种',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'dh',
    label: '代号',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'kljp',
    label: '颗粒级配mm',
    validatorNumber:true,
    labelWidth: 120,
    required: true,
    placeholder: '请填写'
},{
    key: 'hsl',
    label: '含水率%',
    validatorNumber:true,
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'hnl',
    label: '含泥量(质量分数)%',
    validatorNumber:true,
    labelWidth: 160,
    required: true,
    placeholder: '请填写'
}, {
    key: 'nkhl',
    label: '泥块含量(质量分数)%',
    validatorNumber:true,
    labelWidth: 180,
    required: true,
    placeholder: '请填写'
},{
    key: 'zpzklhl',
    label: '针片状颗粒含量%',
    validatorNumber:true,
    labelWidth: 180,
    required: true,
    placeholder: '请填写'
}, {
    key: 'bgzklhl',
    label: '不规则颗粒含量%',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
}, {
    key: 'yjwhl',
    label: '有机物含量',
    validatorNumber:true,
    labelWidth: 100,
    required: false,
    placeholder: '请填写'
},{
    key: 'lhwjlsy',
    label: '硫化物及硫酸盐（按S3O质量计）%',
    validatorNumber:true,
    labelWidth: 240,
    required: false,
    placeholder: '请填写'
},{
    key: 'zlssl',
    label: '质量损失率%',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'yskyqd',
    label: '岩石抗压强度/Mpa',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'yszb',
    label: '压碎指标%',
    validatorNumber:true,
    labelWidth: 120,
    required: true,
    placeholder: '请填写'
},{
    key: 'bgmd',
    label: '表观密度kg/m3',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'ssdjkxl',
    label: '松散堆积孔隙率%',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'xsl',
    label: '吸水率%',
    validatorNumber:true,
    labelWidth: 120,
    required: false,
    placeholder: '请填写'
},{
    key: 'zxbz',
    label: '执行标准',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}]


const requiredArr = []
const notRequiredArr = []

let tempArr = []
form.forEach(item => {
    if(item.required) {
        tempArr.push(item)
    }else {
        notRequiredArr.push(item)
    }
    if( tempArr.length >= 2 ) {
        requiredArr.push(tempArr)
        tempArr = []
    }
})

if( tempArr.length > 0 ) {
    requiredArr.push(tempArr)
    tempArr = []
}

export default {
    requiredArr,
    notRequiredArr
};